package com.citycloud.ccuap.tc.oauth2.dto;

import com.citycloud.ccuap.tc.common.dto.DataCSecurityBasicUser;

import lombok.Data;


/**
 *  对外的用户基本信息对象
 */
@Data
public class UserInfoForSwitchSite {

    public UserInfoForSwitchSite(DataCSecurityBasicUser user) {
        this.setUserId(user.getUserId());
        this.setUserName(user.getUserName());
        this.setIsPlatformManager(user.isPlatformManager());

    }

    public UserInfoForSwitchSite(){

    }

    private Long userId;

    private String userName;

    private boolean isPlatformManager;

    private SiteInfoForSwitchSite platformSite;

    public boolean isIsPlatformManager() { //只是为了让传给前端的参数展示为“isPlatformManager”
        return isPlatformManager;
    }

    public void setIsPlatformManager(boolean platformManager) {
        isPlatformManager = platformManager;
    }
}
